<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:if test="${not empty param.rating}">
		<c:choose>
			<c:when test="${param.rating gt 95 }"> <%--five star--%>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
			</c:when>
			<c:when test="${param.rating gt 85 }"> <%--four and half star--%>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star-half-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 75 }"> <%--four star--%>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 65 }"> <%--three and half star--%>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star-half-empty"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 55 }"> <%--three star--%>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 45 }"> <%--two and half star--%>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star-half-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 35 }"> <%--two star--%>
				<i class="icon-star"></i>
				<i class="icon-star"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 25 }"> <%--one and half star--%>
				<i class="icon-star"></i>
				<i class="icon-star-half-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 15 }"> <%--one star--%>
				<i class="icon-star"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:when test="${param.rating gt 15 }"> <%--half star--%>
				<i class="icon-star-half-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
			</c:when>
			<c:otherwise> <%--zero star--%>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
				<i class="icon-star-empty"></i>
			</c:otherwise>
		</c:choose>
</c:if>
